<?php
/**
* File that sets view of busstops page.
* @package busmap
*/
?>
<?php if(count($this->entries)){ ?>
	<h3>Bussipeatused</h3>
	<table class="data-listing">
		<tr>
			<th>Nimi</th>
			<th>Kordinaadid</th>
		</tr>
		<?php foreach ($this->entries as $entry): ?>
		<tr>
			<td><a href="busstop/<?php echo $this->escape($entry->name) ?>"><?php echo $this->escape($entry->name) ?></a></td>
			<td><?php echo $entry->Xcoordinate.' '.$entry->Ycoordinate ?></td>
		</tr>
		<?php endforeach ?>
	</table>
<?php }else{ ?>
	Hetkel bussipeatused puuduvad andmebaasis.
<?php } ?>